#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
class Shift
{
    public:
        Shift(){};
        void encryption(ifstream& fin,ofstream& fout,int n)
        {
            while(fin.get(next))
            {
                fout<<char((int(next)+n)%128);
            }
        }
        void decryption(ifstream& fin,ofstream& fout,int n)
        {
            while(fin.get(next))
            {
                fout<<char((int(next)-n)%128);
            }
        }

    private:
        char next;
};

int main()
{
    Shift shift;
    ifstream fin;
	ofstream fout;
	fin.open("file1_2.in");   //输入文件file1_1.in
	if(fin.fail())
	{
		cout<<"File open error!(Input)"<<endl;
		exit(1);
	}
	fout.open("file1_2.out");   //输出文件file1_1.out
	{
		cout<<"File open error!(Output)"<<endl;
	}
	
	shift.encryption(fin,fout,1);
	fin.close();
	fout.close();

	return 0;

}